<template>
  <div>
    <van-swipe :autoplay="3000">
      <van-swipe-item v-for="(item) in images" :key="item.goodsId">
        <router-link :to="{name:'goodsDetail',params:{id:item.goodsId}}">
          <img :src="item.image"/>
        </router-link>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "mySwiper",
  props: ["images"],
  data() {
    return {};
  }
};
</script>
<style  scoped>
.van-swipe .van-swipe-item {
  width: 375px;
}
.van-swipe .van-swipe-item img {
  width: 100%;
}
</style>